-- GENERATED SPELL FOR [Blood of the Old God] --


function spell0_28854(pUnit, Event) --@Corruption of the Old God,Self--
pUnit:FullCastSpellOnTarget(52564,pUnit)
pUnit:RegisterEvent('Sorts_28854', 6000, 1)
end

function Sorts_28854(pUnit, Event)
local choix_sorts_28854 = math.random(0, 0)
if choix_sorts_28854 == 0 then
pUnit:RegisterEvent('spell0_28854', 1, 1)
end
end

function mob28854_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28854', math.random(1500, 3000), 1)
end

function mob28854_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28854_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28854_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28854, 1, 'mob28854_Action')
RegisterUnitEvent(28854, 2, 'mob28854_Leave')
RegisterUnitEvent(28854, 3, 'mob28854_Kill')
RegisterUnitEvent(28854, 4, 'mob28854_Die')
